const babylon = require("babylon");
const parserSelf = require('./Parser-self');

module.exports = function () {
  return {
    name: "eason",
    parserOverride(code, opts) {
      code = parserSelf(code, opts)
      return babylon.parse(code, {
        sourceType: 'module'
      })
    },
  };
};
